[INFO] cloning repository https://github.com/Galerien388/codecrafters-dns-server-rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Galerien388/codecrafters-dns-server-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGalerien388%2Fcodecrafters-dns-server-rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGalerien388%2Fcodecrafters-dns-server-rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 81a33ef5b3ca391caf8f3af0f1a2e6d10dd132b6
[INFO] fixing Galerien388/codecrafters-dns-server-rust against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGalerien388%2Fcodecrafters-dns-server-rust" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Galerien388/codecrafters-dns-server-rust
[INFO] finished tweaking git repo https://github.com/Galerien388/codecrafters-dns-server-rust
[INFO] tweaked toml for git repo https://github.com/Galerien388/codecrafters-dns-server-rust written to /workspace/builds/worker-6-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Galerien388/codecrafters-dns-server-rust on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Galerien388/codecrafters-dns-server-rust already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded thiserror-impl v1.0.63
[INFO] [stderr]   Downloaded thiserror v1.0.63
[INFO] [stderr]   Downloaded bytes v1.7.1
[INFO] [stderr]   Downloaded syn v2.0.75
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] da7c15e05e785e36a20a9c124ef70f6ca821b03249b1776af680052188ab8cc5
[INFO] running `Command { std: "docker" "start" "da7c15e05e785e36a20a9c124ef70f6ca821b03249b1776af680052188ab8cc5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "da7c15e05e785e36a20a9c124ef70f6ca821b03249b1776af680052188ab8cc5" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "da7c15e05e785e36a20a9c124ef70f6ca821b03249b1776af680052188ab8cc5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "da7c15e05e785e36a20a9c124ef70f6ca821b03249b1776af680052188ab8cc5" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.86
[INFO] [stderr]    Compiling unicode-ident v1.0.12
[INFO] [stderr]    Compiling anyhow v1.0.86
[INFO] [stderr]    Compiling thiserror v1.0.63
[INFO] [stderr]     Checking bytes v1.7.1
[INFO] [stderr]    Compiling quote v1.0.36
[INFO] [stderr]    Compiling syn v2.0.75
[INFO] [stderr]    Compiling thiserror-impl v1.0.63
[INFO] [stderr]     Checking codecrafters-dns-server v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied
[INFO] [stdout]   --> src/answer.rs:34:34
[INFO] [stdout]    |
[INFO] [stdout] 34 |         let (field, mut start) = Field::from_slice(buf);
[INFO] [stdout]    |                                  ^^^^^^^^^^^^^^^^^----- argument #2 of type `usize` is missing
[INFO] [stdout]    |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]   --> src/field.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 19 |     pub fn from_slice(buf: &[u8], pos: usize) -> (Self, usize) {
[INFO] [stdout]    |            ^^^^^^^^^^             ----------
[INFO] [stdout] help: provide the argument
[INFO] [stdout]    |
[INFO] [stdout] 34 |         let (field, mut start) = Field::from_slice(buf, /* usize */);
[INFO] [stdout]    |                                                       +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied
[INFO] [stdout]   --> src/answer.rs:34:34
[INFO] [stdout]    |
[INFO] [stdout] 34 |         let (field, mut start) = Field::from_slice(buf);
[INFO] [stdout]    |                                  ^^^^^^^^^^^^^^^^^----- argument #2 of type `usize` is missing
[INFO] [stdout]    |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]   --> src/field.rs:19:12
[INFO] [stdout]    |
[INFO] [stdout] 19 |     pub fn from_slice(buf: &[u8], pos: usize) -> (Self, usize) {
[INFO] [stdout]    |            ^^^^^^^^^^             ----------
[INFO] [stdout] help: provide the argument
[INFO] [stdout]    |
[INFO] [stdout] 34 |         let (field, mut start) = Field::from_slice(buf, /* usize */);
[INFO] [stdout]    |                                                       +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied
[INFO] [stdout]   --> src/main.rs:78:29
[INFO] [stdout]    |
[INFO] [stdout] 78 |         len += msg_received.read_questions_from_packet(&resp_buf[len..size]);
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^---------------------- argument #2 of type `usize` is missing
[INFO] [stdout]    |
[INFO] [stdout] note: method defined here
[INFO] [stdout]   --> src/message.rs:44:12
[INFO] [stdout]    |
[INFO] [stdout] 44 |     pub fn read_questions_from_packet(&mut self, buf: &[u8], pos: usize) -> usize {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^                        ----------
[INFO] [stdout] help: provide the argument
[INFO] [stdout]    |
[INFO] [stdout] 78 |         len += msg_received.read_questions_from_packet(&resp_buf[len..size], /* usize */);
[INFO] [stdout]    |                                                                            +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0061]: this method takes 2 arguments but 1 argument was supplied
[INFO] [stdout]   --> src/main.rs:78:29
[INFO] [stdout]    |
[INFO] [stdout] 78 |         len += msg_received.read_questions_from_packet(&resp_buf[len..size]);
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^---------------------- argument #2 of type `usize` is missing
[INFO] [stdout]    |
[INFO] [stdout] note: method defined here
[INFO] [stdout]   --> src/message.rs:44:12
[INFO] [stdout]    |
[INFO] [stdout] 44 |     pub fn read_questions_from_packet(&mut self, buf: &[u8], pos: usize) -> usize {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^^^^^^^^^^^^                        ----------
[INFO] [stdout] help: provide the argument
[INFO] [stdout]    |
[INFO] [stdout] 78 |         len += msg_received.read_questions_from_packet(&resp_buf[len..size], /* usize */);
[INFO] [stdout]    |                                                                            +++++++++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `header_into_slice` found for struct `Message` in the current scope
[INFO] [stdout]   --> src/main.rs:96:29
[INFO] [stdout]    |
[INFO] [stdout] 96 |     let mut start = message.header_into_slice(&mut buf[..HEADER_LEN]);
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/message.rs:8:1
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub struct Message {
[INFO] [stdout]    | ------------------ method `header_into_slice` not found for this struct
[INFO] [stdout]    |
[INFO] [stdout] help: there is a method `answers_into_slice` with a similar name
[INFO] [stdout]    |
[INFO] [stdout] 96 -     let mut start = message.header_into_slice(&mut buf[..HEADER_LEN]);
[INFO] [stdout] 96 +     let mut start = message.answers_into_slice(&mut buf[..HEADER_LEN]);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `pos`
[INFO] [stdout]   --> src/field.rs:19:35
[INFO] [stdout]    |
[INFO] [stdout] 19 |     pub fn from_slice(buf: &[u8], pos: usize) -> (Self, usize) {
[INFO] [stdout]    |                                   ^^^ help: if this is intentional, prefix it with an underscore: `_pos`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `pos`
[INFO] [stdout]   --> src/message.rs:46:28
[INFO] [stdout]    |
[INFO] [stdout] 46 |             let (question, pos) = Question::read(&buf, pos);
[INFO] [stdout]    |                            ^^^ help: if this is intentional, prefix it with an underscore: `_pos`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `header_into_slice` found for struct `Message` in the current scope
[INFO] [stdout]   --> src/main.rs:96:29
[INFO] [stdout]    |
[INFO] [stdout] 96 |     let mut start = message.header_into_slice(&mut buf[..HEADER_LEN]);
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/message.rs:8:1
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub struct Message {
[INFO] [stdout]    | ------------------ method `header_into_slice` not found for this struct
[INFO] [stdout]    |
[INFO] [stdout] help: there is a method `answers_into_slice` with a similar name
[INFO] [stdout]    |
[INFO] [stdout] 96 -     let mut start = message.header_into_slice(&mut buf[..HEADER_LEN]);
[INFO] [stdout] 96 +     let mut start = message.answers_into_slice(&mut buf[..HEADER_LEN]);
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `codecrafters-dns-server` (bin "codecrafters-dns-server" test) due to 3 previous errors; 2 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: unused variable: `pos`
[INFO] [stdout]   --> src/field.rs:19:35
[INFO] [stdout]    |
[INFO] [stdout] 19 |     pub fn from_slice(buf: &[u8], pos: usize) -> (Self, usize) {
[INFO] [stdout]    |                                   ^^^ help: if this is intentional, prefix it with an underscore: `_pos`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `pos`
[INFO] [stdout]   --> src/message.rs:46:28
[INFO] [stdout]    |
[INFO] [stdout] 46 |             let (question, pos) = Question::read(&buf, pos);
[INFO] [stdout]    |                            ^^^ help: if this is intentional, prefix it with an underscore: `_pos`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0061, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0061`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `codecrafters-dns-server` (bin "codecrafters-dns-server") due to 3 previous errors; 2 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "da7c15e05e785e36a20a9c124ef70f6ca821b03249b1776af680052188ab8cc5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "da7c15e05e785e36a20a9c124ef70f6ca821b03249b1776af680052188ab8cc5", kill_on_drop: false }`
[INFO] [stdout] da7c15e05e785e36a20a9c124ef70f6ca821b03249b1776af680052188ab8cc5
